package com.bobo.service.factory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.bobo.service.impl.HandleServiceImpl;
import com.bobo.services.HandleService;

public class ServiceFactory {
	private static ApplicationContext context;
	static{
		context=new ClassPathXmlApplicationContext("spring.xml");
	}
	/**
	 * 获取用户层接口
	 * @author danchaobing
	 *
	 */
	public static HandleService getHandleService() {
		return (HandleServiceImpl)context.getBean("handleServiceImpl");
	}
}
